# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=hypnotix
pkgver=3.5
pkgrel=0
pkgdesc="IPTV streaming application"
url="https://github.com/linuxmint/hypnotix"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	dconf
	gdk-pixbuf
	glib
	py3-cairo
	py3-gettext
	py3-imdbpy
	py3-mpv
	py3-pillow
	py3-requests
	py3-setproctitle
	py3-unidecode
	pango
	python3
	xapp
	"
makedepends="gettext-dev"
subpackages="$pkgname-lang"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/hypnotix/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	sed -i "s/__DEB_VERSION__/$pkgver/g" "$builddir"/usr/lib/hypnotix/hypnotix.py
}

build() {
	make
}

package() {
	mkdir -p "$pkgdir"
	mv usr/ "$pkgdir"/usr
}

sha512sums="
e0c3dd1fe113b669f7e79e57282b8f07d1c8638edfabf0f444bab7a6c58198cfd06f5bc3978c54fb6326e0661dfdbb5242d4cc5bb25743ce4d942b34faf9dddd  hypnotix-3.5.tar.gz
"
